<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>${sysName}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="${resRoot}/layui/css/layui.css" media="all" />
  <link rel="stylesheet" href="${resRoot}/layui/admin/admin.css" media="all" />
	<link id="layuicss-layer" rel="stylesheet" href="${resRoot}/layui/css/modules/layer/default/layer.css" media="all">
</head>
<body>
<div class="layui-fluid">   
          <div class="layui-card">
          <div class="layui-form layui-card-header layuiadmin-card-header-auto"> 
 
<form class="layui-form" action="#" style="margin-top: 20px;margin-bottom:50px;" lay-filter="dataForm"  >
<input type="hidden" id="id" name="id"  >
  <div class="layui-form-item">
    <label class="layui-form-label">批次号</label>
    <div class="layui-input-inline">
	      <input type="text" name="cdBatch" id="cdBatch" value=""  autocomplete="off" placeholder="请输入批次号" class="layui-input" lay-verify="required" lay-reqtext="请输入批次号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入批次号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">短申办流水号</label>
    <div class="layui-input-inline">
	      <input type="text" name="sblshshort" id="sblshshort" value=""  autocomplete="off" placeholder="请输入短申办流水号" class="layui-input" lay-verify="required" lay-reqtext="请输入短申办流水号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入短申办流水号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">办件编号</label>
    <div class="layui-input-inline">
	      <input type="text" name="projectno" id="projectno" value=""  autocomplete="off" placeholder="请输入办件编号" class="layui-input" lay-verify="required" lay-reqtext="请输入办件编号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入办件编号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">申办流水号</label>
    <div class="layui-input-inline">
	      <input type="text" name="sblsh" id="sblsh" value=""  autocomplete="off" placeholder="请输入申办流水号" class="layui-input" lay-verify="required" lay-reqtext="请输入申办流水号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入申办流水号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">事项名称</label>
    <div class="layui-input-inline">
	      <input type="text" name="taskname" id="taskname" value=""  autocomplete="off" placeholder="请输入事项名称" class="layui-input" lay-verify="required" lay-reqtext="请输入事项名称" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入事项名称</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">同步时间</label>
    <div class="layui-input-inline">
	      <input type="text" name="cdTime" id="cdTime" value=""  autocomplete="off" placeholder="请输入同步时间" class="layui-input" lay-verify="required" lay-reqtext="请输入同步时间" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入同步时间</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
	      <input type="text" name="resulttype" id="resulttype" value=""  autocomplete="off" placeholder="请输入" class="layui-input" lay-verify="required" lay-reqtext="请输入" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾人证件号/军人证件号</label>
    <div class="layui-input-inline">
	      <input type="text" name="zjhm" id="zjhm" value=""  autocomplete="off" placeholder="请输入残疾人证件号/军人证件号" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾人证件号/军人证件号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾人证件号/军人证件号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-inline">
	      <input type="text" name="xm" id="xm" value=""  autocomplete="off" placeholder="请输入姓名" class="layui-input" lay-verify="required" lay-reqtext="请输入姓名" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入姓名</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">住房补助</label>
    <div class="layui-input-inline">
	      <input type="text" name="zfbz" id="zfbz" value=""  autocomplete="off" placeholder="请输入住房补助" class="layui-input" lay-verify="required" lay-reqtext="请输入住房补助" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入住房补助</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">身份证号</label>
    <div class="layui-input-inline">
	      <input type="text" name="sfzh" id="sfzh" value=""  autocomplete="off" placeholder="请输入身份证号" class="layui-input" lay-verify="required" lay-reqtext="请输入身份证号" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入身份证号</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">累计金额</label>
    <div class="layui-input-inline">
	      <input type="text" name="ljje" id="ljje" value=""  autocomplete="off" placeholder="请输入累计金额" class="layui-input" lay-verify="required" lay-reqtext="请输入累计金额" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入累计金额</div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">出生年月</label>
    <div class="layui-input-inline">
    	<input type="text" class="layui-input" id="csny" name="csny"  onClick="WdatePicker({startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" placeholder="yyyy-MM-dd" value="" lay-verify="required|date" >
    </div>
    <div class="layui-form-mid layui-word-aux">请选择出生年月</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">文化程度</label>
    <div class="layui-input-inline">
	      <input type="text" name="whcd" id="whcd" value=""  autocomplete="off" placeholder="请输入文化程度" class="layui-input" lay-verify="required" lay-reqtext="请输入文化程度" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入文化程度</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">临时补助</label>
    <div class="layui-input-inline">
	      <input type="text" name="lsbz" id="lsbz" value=""  autocomplete="off" placeholder="请输入临时补助" class="layui-input" lay-verify="required" lay-reqtext="请输入临时补助" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入临时补助</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">子表数据</label>
    <div class="layui-input-inline">
	      <input type="text" name="dataform" id="dataform" value=""  autocomplete="off" placeholder="请输入子表数据" class="layui-input" lay-verify="required" lay-reqtext="请输入子表数据" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入子表数据</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">已领次数</label>
    <div class="layui-input-inline">
	      <input type="text" name="ylcs" id="ylcs" value=""  autocomplete="off" placeholder="请输入已领次数" class="layui-input" lay-verify="required" lay-reqtext="请输入已领次数" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入已领次数</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">本年度领取特殊困难救助金情况（已申请项目、已领次数、累计金额）</label>
    <div class="layui-input-inline">
	      <input type="text" name="ysqxm" id="ysqxm" value=""  autocomplete="off" placeholder="请输入本年度领取特殊困难救助金情况（已申请项目、已领次数、累计金额）" class="layui-input" lay-verify="required" lay-reqtext="请输入本年度领取特殊困难救助金情况（已申请项目、已领次数、累计金额）" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入本年度领取特殊困难救助金情况（已申请项目、已领次数、累计金额）</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">详细住址</label>
    <div class="layui-input-inline">
	      <input type="text" name="xxzz" id="xxzz" value=""  autocomplete="off" placeholder="请输入详细住址" class="layui-input" lay-verify="required" lay-reqtext="请输入详细住址" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入详细住址</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾等级</label>
    <div class="layui-input-inline">
	      <input type="text" name="cjdj" id="cjdj" value=""  autocomplete="off" placeholder="请输入残疾等级" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾等级" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾等级</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">残疾类别</label>
    <div class="layui-input-inline">
	      <input type="text" name="cjlb" id="cjlb" value=""  autocomplete="off" placeholder="请输入残疾类别" class="layui-input" lay-verify="required" lay-reqtext="请输入残疾类别" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入残疾类别</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">户籍地址</label>
    <div class="layui-input-inline">
	      <input type="text" name="hjdz" id="hjdz" value=""  autocomplete="off" placeholder="请输入户籍地址" class="layui-input" lay-verify="required" lay-reqtext="请输入户籍地址" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入户籍地址</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-inline">
	      <input type="text" name="xb" id="xb" value=""  autocomplete="off" placeholder="请输入性别" class="layui-input" lay-verify="required" lay-reqtext="请输入性别" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入性别</div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">学杂费补助</label>
    <div class="layui-input-inline">
	      <input type="text" name="xzfba" id="xzfba" value=""  autocomplete="off" placeholder="请输入学杂费补助" class="layui-input" lay-verify="required" lay-reqtext="请输入学杂费补助" >
    </div>
    <div class="layui-form-mid layui-word-aux">请输入学杂费补助</div>
  </div>


  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" id=""  lay-submit="" lay-filter="dataSaveSubmit"  type="button">立即提交</button>
      <button type="button" class="layui-btn layui-btn-primary" onclick="backList();" >返回</button>
    </div>
  </div>
</form>
</div>
  </div>
  </div>
<#include "/page/footer.html">
<script>
var id = "${id!}";
$(function(){


$(function(){
	var dataTmp = getDataById(id, "${base}/sys/clQybzCjeycxbz/get/" + id)
})
});
function backList() {
	parent.layer.closeAll("iframe");
    //刷新父页面
    parent.location.reload();
}

function removeImg(id) {
	layer.confirm('您是确认删除/查看该图片吗？', {
		  btn: ['确认','查看'] //按钮
		}, function(){
			$("#" + id).attr("src", "");
			layer.msg('已删除！');
		}, function(){
			window.open($("#" + id).attr("src"));
		  //layer.msg('已取消！');
		});
}
layui.use(['form', 'layedit', 'laydate', 'upload'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  
  var upload = layui.upload;
  
  // 页面验证，及自定义验证规则 样例 表单验证参考  https://www.layui.com/demo/form.html
  form.verify({
    title: function(value){
      if(value.length == 0){
        return '参数不能为空';
      }
    }
    ,pass: [/(.+){6,12}$/, '密码必须6到12位']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
  
  form.on('submit(dataSaveSubmit)', function(data){
      var index = layer.msg('加载中...',{icon: 16,time:false,shade:0.8});
      delete data.field.file;
      $.ajax({
			url : "${base}/sys/clQybzCjeycxbz/save",
			contentType : "application/json",
         	dataType : 'json',
			data : JSON.stringify(data.field),
          	type:'post',
			async : true,
			success : function(data) {
				layer.close(index);
				console.log(data)
				if(data.code == 1) {
						layer.msg('保存成功！', {
						  icon: 1,
						  time: 2000 //2秒关闭（如果不配置，默认是3秒）
						}, function(){
							backList();
						});   
					} else {
						layer.msg(data.msg); 
					}
			}
		}); 
    });
  
});

layui.use('upload', function(){
	  
});  
</script>
</body>
</html>